<template>
	<view>
		<view class="flex flex-ai-c flex-jc-sa select">
			<view class="flex flex-ai-c" @click="show = true">
				<view>{{year}}年{{month}}月</view>
				<view style="margin-left: 10rpx;">
					<u-icon name='arrow-down-fill' color="#666666" size="18rpx"></u-icon>
				</view>
			</view>
			<view class="flex flex-ai-c" @click="isType = true">
				<view>{{text}}</view>
				<view style="margin-left: 10rpx;">
					<u-icon name='arrow-down-fill' color="#666666" size="18rpx"></u-icon>
				</view>
			</view>
		</view>
		<view class="list flex flex-dir-c flex-jc-c" v-for="(item,index) in list" :key='item.id'>
			<view class="flex flex-ai-c flex-jc-sb">
				<view>提现</view>
				<view>-{{item.applywithdrawMoney | million}}</view>
			</view>
			<view class="flex flex-ai-c flex-jc-sb">
				<view>{{item.handDateTime}}</view>
				<view :class="'type-' + item.resultStatus">{{item.resultStatus | formatStoreType}}</view>
			</view>
		</view>
		<u-loadmore :status="loadStatus" v-show="list.length!==0" @loadmore="more" margin-top="50"/>
		<view class="defaultMap" v-show="isShow && list.length===0">
			<image src="https://files.yzsheng.com/bussiness/imgs/tu@2x.png"></image>
			<view class="texna">
				暂无更多信息，看看其他的吧
			</view>
		</view>
		<u-picker v-model="show" start-year="2020" :end-year="endYear" :borderRadius="30" mode="time" :params="params" :default-time="defaultTime" confirm-color="#FBB000"
			:mask-close-able="true" @confirm="confirm"></u-picker>
		
		<u-popup v-model="isType" mode='bottom' border-radius="30">
			<view class="popup">
				<view class="flex flex-jc-sb popup-title">
					<view>取消</view>
					<view style="color: #FBB000;" @click="comfig">确定</view>
				</view>
				
				<view v-for="(item,index2) in status" :key='index2' class="flex flex-dir-c flex-ai-c popup-list" @click="select(item.status,item.text)">
					<view class="popup-cell" :class="[{'active': isChoose === index2}]">{{item.text}}</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script src='./record.js'></script>

<style lang="scss">
	//默认图
	.defaultMap {
		padding-top: 100rpx;
		width: 750rpx;
		height: 85vh;
		text-align: center;
	
		image {
			width: 263rpx;
			height: 277rpx;
		}
	
		.texna {
			font-size: 28rpx;
			color: #999999;
		}
	}
	.active{
		color: #333333 !important;
	}
	.select {
		background-color: rgba(62, 148, 244, 0.05);
		height: 88rpx;
	}

	.list:nth-child(odd) {
		background-color: rgba(62, 148, 244, 0.05);
	}

	.list {
		padding: 0 44rpx 0 41rpx;
		width: 100%;
		height: 140rpx;
	}

	.type-100 {
		color: #F5BE15;
		font-size: 24rpx;
	}

	.type-200 {
		color: #568D35;
		font-size: 24rpx;
	}
	.type-240 {
		color: #F5BE15;
		font-size: 24rpx
	}
	.type-260 {
		color: #999999;
		font-size: 24rpx;
	}
	.type-300 {
		color: #999999;
		font-size: 24rpx;
	}

	.popup {
		// height: 532rpx;
		background: #FFFFFF;

		&-title {
			padding: 32rpx 33rpx;
			border-bottom: 2rpx solid #EEEEEE;
		}
		&-cell{
			line-height: 100rpx;
			color: #999999;
		}
	}
</style>
